package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.common.bean.po.OrderDispatch;
import org.koron.ebs.mybatis.SessionFactory;

/**
 * (OrderDispatch)表服务接口
 *
 * @author makejava
 * @since 2021-09-03 15:35:11
 */
public interface OrderDispatchService extends CommonService {

    int insertOrUpdate(SessionFactory factory, OrderDispatch orderDispatch);

    int insert(SessionFactory factory, OrderDispatch orderDispatch);

    int update(SessionFactory factory, OrderDispatch orderDispatch);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    OrderDispatch queryById(SessionFactory factory, String id);

    OrderDispatch queryByOrderId(SessionFactory factory, String id);

    PageInfo queryList(SessionFactory factory, OrderDispatch orderDispatch, BaseQueryBean pageBean);

}